/**
Date: 2025-08-13
Copyright (c) 2025 CAX Conversion Project
*/
import request from '@/utils/request';
// CAX格式转换接口
export const caxConvertInfoList = (data) => {
  return request({
    url: '/cax/convert/list',
    method: 'post',
    data
  });
};
//下载CAX格式转换-源文件
export const downloadSource = (id) => {
  return request({
    url: `/cax/convert/download/source/${id}`,
    method: 'get',
    responseType: 'blob'
  });
};
//下载CAX格式转换-转换文件
export const downloadTarget = (id) => {
  return request({
    url: `/cax/convert/download/target/${id}`,
    method: 'get',
    responseType: 'blob'
  });
};
//转换记录导出
export const exportData = (data) => {
  return request({
    url: `/cax/convert/exportData`,
    method: 'post',
    data,
    responseType: 'blob'
  });
};
//批量删除
export const deleteConvert = (ids) => {
  return request({
    url: `/cax/convert/${ids}`,
    method: 'delete'
  });
};
//根据转换记录id查询点云检查报告
export const qualityChecker = (id) => {
  return request({
    url: `/cax/qualityChecker/queryByConvertId/${id}`,
    method: 'get'
  });
};
//根据转换记录id查询几何检查报告
export const geometricCheck = (id) => {
  return request({
    url: `/cax/geometricCheck/queryByConvertId/${id}`,
    method: 'get'
  });
};
